package com.rjpacket.MyUEnjoy.fragments;


import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import com.rjpacket.MyUEnjoy.R;

/**
 * Created by aaa on 15-1-23.
 */
public class LoginInFragment extends Fragment {
    public LoginInFragment(){

    }
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.login_in_fragment, container, false);

        ImageView imageView = (ImageView) view.findViewById(R.id.imageView_login_in);

        Bundle bundle = getArguments();
        int position = bundle.getInt("position");
        switch(position){
            case 0:
                imageView.setImageResource(R.drawable.guide_first);
                break;
            case 1:
                imageView.setImageResource(R.drawable.guide_second);
                break;
            case 2:
                imageView.setImageResource(R.drawable.guide_third);
                break;
            case 3:
                break;
        }

        return view;
    }
}